#include <string>
#include <vector>

class stringvariable
{
  public:
    std::string name;
    std::string value;
};

class stringvariablebag
{
  public:
    void set(std::string name, std::string value);
    std::string get(std::string name);
  private:
    std::vector<stringvariable> listOfStrings;
};

void stringvariablebag::set(std::string name, std::string value)
{
  for(unsigned i = 0; i < listOfStrings.size(); i++)
  {
    if(listOfStrings[i].name == name)
    {
      listOfStrings[i].value = value;
      return;
    }
  }
  stringvariable sv;
  sv.name = name;
  sv.value = value;
  listOfStrings.push_back(sv);
  return;
}

std::string stringvariablebag::get(std::string name)
{
  for(unsigned i = 0; i < listOfStrings.size(); i++)
  {
    if(listOfStrings[i].name == name)
      return listOfStrings[i].value;
  }
  stringvariable sv;
  sv.name = name;
  sv.value = "";
  listOfStrings.push_back(sv);\
  return sv.value;
}
